EAB Interview Question

Simple array manipulation