Form Biggest number - STL

I sorted the input in lexicographical order and printed that ,but still i am getting WA. Does input contains number like 0988, etc. ?? Any hint what could be its reason? (not even a single tc is passing)

@shivampandey9599 hey simple sorting will not work here if the given numbers are {54, 546, 548, 60}, the arrangement 6054854654 gives the largest value.Also 548 is greater than 60, but in output 60 comes before 548. As a second example, 98 is greater than 9, but 9 comes before 98 in output. So use this approach:
n the used sorting algorithm, instead of using the default comparison, write a comparison function myCompare() and use it to sort numbers.

Given two numbers X and Y, how should myCompare() decide which number to put first – we compare two numbers XY (Y appended at the end of X) and YX (X appended at the end of Y). If XY is larger, then X should come before Y in output, else Y should come before. For example, let X and Y be 542 and 60. To compare X and Y, we compare 54260 and 60542. Since 60542 is greater than 54260,
we put Y first.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.