Pergunta de entrevista da empresa Google

Sliding Window problem to find the maximum value in a set of k element from an array of n elements