Visa Inc. Interview Question

Leetcode Easy to Medium question