Cognizant interview question

They asked a question that could easily be solved with an array.