Biggest number Wrong answer

question: https://hack.codingblocks.com/contests/c/509/1291
answer: https://ide.codingblocks.com/s/37559

Hello sir @Abhishek-Vanjani-138 sir what’s Wrong with my approach?

You are not handling all the test cases. for eg.
1
4
2 95 9547 6
fo this output should be 95954762 but your code’s output is 95479562