Form biggest number

I am not able to build the logic .help me in understanding
the problem

Hello @ikshit9
the simple logic you can apply in this is that take the sort function and take compare in it .
in that compare function return the max of
a+b or b+a .
in this way you can do this question.

please check why it happens with me all programs i have done work perfectly on random input but failing testcase. same with this question

@ikshit9 https://ide.codingblocks.com/s/447408
check this.