For python code i am getting RE for the Grand temple problem

Hey @gandikotasasia1_d6d586dbd5c4388c i don’t have idea for python, i have attached c++ code below, you can take reference from it.


Let me know if you find any difficulty in understanding.

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.