SIRCLO interview question

Manipulate array