give array positive integer arr find pattern length m repeat k timesA pattern subarray consecutive subsequence consist value repeat multiple time consecutively overlap a pattern define length number repetitionsreturn true exist pattern length m repeat k times return false Example 1input arr 124444 m 1 k 3output trueexplanation the pattern 4 length 1 repeat 4 consecutive time Notice pattern repeat k time lessexample 2Input arr 12121113 m 2 k 2output trueexplanation the pattern 12 length 2 repeat 2 consecutive time another valid pattern 21 repeat 2 timesExample 3input arr 121213 m 2 k 3output falseexplanation the pattern 12 length 2 repeat 2 time there pattern length 2 repeat 3 time Constraints2 arrlength 1001 arri 1001 m 1002 k 100