the link to the problem: here
My Solution: link
I have checked the top of both strings and printed the lexicographically smaller one,
if both characters are same, I have traversed both the strings until I find a difference in character or I reach the end of one of the strings,
and according to the character after the above loop, I have printed either the first or second string’s characters.
I’ve tested my code on various test cases,
Can someone tell me where I have gone wrong? or provide a testcase where my code fails?