My 2 testecases are showing wrong.please tell my mistake

Hi @anshumansengar619,
Your answer is correct but the order in which you are displaying is a bit incorrect due to which you get the error . Try changing the code to get correct output.