Bloomberg Interview Question

how to find min and second min in an array