Pergunta de entrevista da empresa SmartThings

Find second smallest number in array without sorting