Pregunta de entrevista de Unity

Codility test with 4 questions (easy to hard), algorithms and bugfix