in reply to Stuck with manipulating an array

well, forget about the computer, how would you solve the problem using your brain alone?