AgileEngine interview question

Codility test for number manipulation