OUTPUT and EXPECTED OUTPUT in the below-Attached image:
https://i.stack.imgur.com/LT9kQ.png
Here the code is working, But my expected output is I want to merge