Feedback for DIAMTREE problem

Problem Link: CodeChef: Practical coding for everyone

Feedback

when i am submitting my solution it is giving runtime error, it is not showing description about the runtime error. There is only an option of ask AI which is totally useless. Please provide a descriptive error message.