I am unable to find the logical error in my code

The question is :
https://online.codingblocks.com/app/player/133296/content/139514/5316/code-challenge

My solution code is :

Please tell me the logical error in my code.

Hey @LP19DPPM0035
You have shared the wrong code.this is not the code for ‘form biggest number’

https://ide.codingblocks.com/s/330673 This is the correct link . Sorry i posted the wrong link before

here is one sample test case.
INPUT:
1
4
0 90 32 9009

EXPECTED OUTPUT: 909009320
try to debug with this

Too silly mistake…!!

wrote the if(flag) break; condition inside the inner loop while sorting through bubble sort