Visa Inc. interview question

mid-level leetcode problems