FORM BIGGEST NUMBER problem in arrays

ques-
https://hack.codingblocks.com/contests/c/253/1291
code-
https://ide.codingblocks.com/s/61947
running well for sample input as well as some other inputs but getting test case wrong answer
i have done sorting by comparing the combination of two elements of the array

Hii Lavish,
In this question we will form an array of strings and then sort the array on the basis of combining two string in different order and checking which one is greater and then return the sequence in which we get the greater string.

Hey Lavish, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.