Visa Inc. Interview Question

DSA DP problem and sql queries