Groupon interview question

wirte code for finding the smallest K elements in a list