give integer array num return number element strictly small strictly great element appear num Example 1input num 117215output 2explanation the element 7 element 2 strictly small element 11 strictly great itelement 11 element 7 strictly small element 15 strictly great itin total 2 element having strictly small strictly great element appear numsexample 2input num 33390output 2explanation the element 3 element 3 strictly small element 90 strictly great itsince element value 3 total 2 element having strictly small strictly great element appear num Constraints1 numslength 100105 numsi 105