Pergunta de entrevista da empresa Nanigans

given an int array of n integers, return the k smallest integers