T-prime (two test cases wrong)


why am i getting wrong answer for two test cases?

@Sagarjha07,
Check your code on this,

Input
1
124