Flipkart Interview Question

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