Pergunta de entrevista da empresa Cognizant

How to find the smallest and second smallest no in the given array