Since arr [ i ] also exists in array , v [ it - 1 ] will be same as arr [ i ] . Let us check v [ it - 2 ] is also same as arr [ i ] . If true , then arr [ i ] exists twice in array , so ceiling is same same as arr [ i ]
if ( it - 1 ) != 0 and v [ it - 2 ] == arr [ i ] : NEW_LINE