Pregunta de entrevista de Onsurity

Leetcode problem statement : Rabbit in Forest