Domanda di colloquio di InRhythm

Codility challenge question. Involved coding task.