Form Biggest Number

I can’t understand the flaw in the code. It is showing wrong answer for the test case.