Visa Inc. Interview Question

SQL Question on window functions