Check if current element is smaller than smallest , the current smallest will become secondSmallest and current element will be the new smallest
if ( arr [ i ] < smallest ) : NEW_LINE INDENT secondSmallest = smallest NEW_LINE smallest = arr [ i ] NEW_LINE DEDENT