Pregunta de entrevista de Turing

Coding Test: Frog and Fly distance Problem