Flipkart interview question

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