Pergunta de entrevista da empresa Oracle

Sliding window based question was asked