Pergunta de entrevista da empresa Groupon

wirte code for finding the smallest K elements in a list