Pergunta de entrevista da empresa Flipkart

Find k smallest elements of an array without using extra space.