Tilt Interview Question

Simple array manipulation.