Visa Inc. interview question

One question was about array manipulation.