Question d’entretien chez Flipkart

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