Avature interview question

Codility questions