an array monotonic monotone increase monotone decreasingan array num monotone increase j numsi numsj an array num monotone decrease j numsi numsjGiven integer array num return true give array monotonic false example 1input num 1223output trueExample 2input num 6544output trueexample 3input num 132Output false Constraints1 numslength 105105 numsi 105