If concatenation of elements is divisible by 3
if ( parseInt ( ( arr [ i ] ) . toString ( ) + ( arr [ j ] ) . toString ( ) , 10 ) % 3 == 0 || parseInt ( ( arr [ j ] ) . toString ( ) + ( arr [ i ] ) . toString ( ) , 10 ) % 3 == 0 ) {