Window Function Sql Questions Hackerrank