Visa Inc. interview question

Strings and arrays and one sql question