Form biggest number

I don’t why my test case are failing?Please tell me what’s is going wrong

@hjdjkkjc8 You are just checking the value of number and then assigning the maximum number to the first.
See this test case
5
90 09 990 889 9
Your code is giving an answer : 9909099889 .
Wherease it should give 99909088909

@hjdjkkjc8 I would recommend you to use strings for solving this problem and use comparator for finding the maximum of both the number after checking both the cases.

@hjdjkkjc8 If you have already tried for a longer time you may ask for help.
Also could you send me the link of the question.

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.