Visa Inc. Interview Question

1 dsa question that was medium level array question