If current element is smaller than firstSmallest then update both firstSmallest and secondSmallest
if ( arr [ i ] < firstSmallest ) : NEW_LINE INDENT secondSmallest = firstSmallest NEW_LINE firstSmallest = arr [ i ] NEW_LINE DEDENT