Pergunta de entrevista da empresa Amazon

Write code to find the smallest two numbers in an array.