Custom Testcases are passed but testcase 1 not passing

i tried many custom inputs its showing correct result not able to understand in what testcases my code is showing wrong output .
code:

@myself.yash.srivastav may be your program is not running this is due to the reason you forget to putendline so result of multiple test case are coming in sameline

added it ,Still not passing
code:

@hey yash your code is not right
1
8
1 34 3 98 9 76 45 4
your output is wrong
989764543431
but output should be
998764543431
to resolve this problem sort the array with the help of custom compartor