I\'m programming this in Java but don\'t worry about the language you choose to respond in. This is more of a logical question.
I\'ve got an array of size n
n