Pregunta de entrevista de FortifyIQ

There was an abstract algorithmic task with ghost