OYO interview question

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