Pregunta de entrevista de Zoho

Logical puzzle and problem solving