give integer array num return number and triplesan and triple triple index j k that0 numslength0 j numslength0 k numslengthnumsi numsj numsk 0 represent bitwiseand operator Example 1input num 213output 12Explanation we choose follow j k triplesi0 j0 k1 2 2 1i0 j1 k0 2 1 2i0 j1 k1 2 1 1i0 j1 k2 2 1 3i0 j2 k1 2 3 1i1 j0 k0 1 2 2i1 j0 k1 1 2 1i1 j0 k2 1 2 3i1 j1 k0 1 1 2i1 j2 k0 1 3 2i2 j0 k1 3 2 1i2 j1 k0 3 1 2example 2input num 000output 27 Constraints1 numslength 10000 numsi 216