Mastercard interview question

Leetcode medium for coding, typical behav for second interview