Biggest number formation

question- https://hack.codingblocks.com/contests/c/509/1291
code - https://ide.codingblocks.com/s/37915

giving wrong answer on hacker blocks

Separate the outputs of every test case with next line.

thank you so much…

one more problem pls

https://hack.codingblocks.com/contests/c/509/696
https://ide.codingblocks.com/s/37929

returning garbage