Pregunta de entrevista de Oracle

Sliding window based question was asked