@Ajay JayswalFor this case use "Enforce Order processor" and by using UpdateAttribute processor add the sequence number to the flowfile.
Flowfile-2 will have lower sequence number compared to flowfile1 then feed the success connection to "MergeContent processor", By using enforceorder processor we are making sure flowfile2 will be going to mergecontent processor before flowfile1 and mergecontent processor will merges flowfile as "worldhello"
Refer to this link for more details regards to usage/configuring the flow.