Pregunta de entrevista de Gnani.ai

Find the smallest and second smallest element in a list