you give integer array equal length target arr in step select nonempty subarray arr reverse you allow number stepsreturn true arr equal target false Example 1input target 1234 arr 2413output trueexplanation you follow step convert arr target1 Reverse subarray 241 arr 14232 Reverse subarray 42 arr 12433 Reverse subarray 43 arr 1234there multiple way convert arr target way soexample 2input target 7 arr 7Output trueExplanation arr equal target reversesExample 3input target 379 arr 3711output falseexplanation arr value 9 convert target Constraintstargetlength arrlength1 targetlength 10001 targeti 10001 arri 1000