I am trying to solve a problem on Hacker Earth ( Monk and Rotation ). I believe, as per the given explanation I solved the problem. But, the expected output given by the hac