This is what i figured and still getting TLE

while(ch!=‘x’|| ch!=‘X’) this is not working so which while condition to apply and why

hello @anuragsen9617

u need to use && in place of ||.
becuase we want both the condition to be false for furthur execution.

check this->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.