Pergunta de entrevista da empresa Gnani.ai

Find the smallest and second smallest element in a list