Amazon Interview Question

Window functions, reversed linked list, visualizations