Next Pathway Interview Question

Pyspark window function scenario question