Pregunta de entrevista de SOUTHWORKS

Code challenge in codility, find bugs