OYO Interview Question

One tricky question based on WINDOW functions - LEAD & LAG.