Visa Inc. interview question

Simple string and array matrix basics