Postgresql Moving Average Window Function In Pyspark Interview