Akvelon interview question

Some easy algorithmic problem with arrays