Pregunta de entrevista de Amazon

sliding window and sorting and algorithms