give integer array num return integer array count countsi number small element right numsi Example 1input num 5261output 2110explanationto right 5 2 small element 2 1to right 2 1 small element 1to right 6 1 small element 1to right 1 0 small elementExample 2input num 1output 0Example 3input num 11output 00 Constraints1 numslength 105104 numsi 104