Hello Everyone,
I just competed in ABC 394 and I had trouble with Question E. I wrote a submission which used recursion to try and reverse engineer the shortest palindromic path, and currently, I am not quite sure why my solution doesn't work. Could anyone take a look and help me please? Thank you very much! Here is my submission: https://atcoder.jp/contests/abc394/submissions/63047782