Test cases for zco13002( Little Red Riding Hood problem)

I am a beginner and I was trying to solve the Little Red Riding Hood Problem but I got half AC and Half WA. Can someone please give test cases so that I can check my mistake.
Thank you so much.
The link to the problem: https://www.codechef.com/ZCOPRAC/problems/ZCO13002