is anfisa must go as the shape of "L"?
user171027 there is an animation in the statement which shows how Anfisa moves. It starts in the top left corner and then moves either right or down until it reaches bottom right corner.