Apple Interview Question

A SQL Question that requires a window function