Cognizant Interview Question

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