Expedia Group interview question

SQL window function, lag and lead