Visa Inc. interview question

Problem solving