Codility interview question

It was a Codility test that was technical