WDTBAM - WA

Question Link and My Solution Link… Cant able to detect in what condition my answer will show WA.

You have to give the answer considering best situation. Meaning, you can make it this way that he gets those Q first such that he can correctly answer them.