Visa Inc. Interview Question

A DP problem that I’ve never seen