give array num return true array originally sort nondecrease order rotate number position include zero Otherwise return falsethere duplicate original arrayNote an array a rotate x position result array b length Ai Bix Alength modulo operation Example 1input num 34512output trueExplanation 12345 original sort arrayyou rotate array x 3 position begin element value 3 34512example 2input num 2134output falseexplanation there sort array rotate numsexample 3input num 123output trueExplanation 123 original sort arrayyou rotate array x 0 position ie rotation num Constraints1 numslength 1001 numsi 100