Pergunta de entrevista da empresa Amazon

Given an array of integers, return the k smallest element in each continuous subarray of size n.