Logic doubt., only one test case run

convert 2 int to string type and then compare
typical case when one is prefix of another…

doing in this way is a little bit complicated, as it involve many conditions.
you can do comparison in a better way(tricky when doing first time).
lets say you have a and b as strings. you want to decide the order in which they should come.

so compute c = a+b, d=b+a… if c>d, a should come first, otherwise b should come first.

thanks