Solve sliding-window and heap problems | Amazon