give 0indexed integer array num return number distinct quadruplet b c d thatnumsa numsb numsc numsd anda b c d Example 1input num 1236output 1explanation the quadruplet satisfie requirement 0 1 2 3 1 2 3 6example 2input num 33645output 0explanation there quadruplet 33645example 3input num 11135output 4explanation the 4 quadruplet satisfy requirement 0 1 2 3 1 1 1 3 0 1 3 4 1 1 3 5 0 2 3 4 1 1 3 5 1 2 3 4 1 1 3 5 constraints4 numslength 501 numsi 100