Array Element Ordering — Coding problem | OneNoughtOne