BatchData interview question

SQL window function were asked