give integer array arr return length maximum size turbulent subarray arrA subarray turbulent comparison sign flips adjacent pair element subarrayMore formally subarray arri arri 1 arrj arr say turbulent ifFor k jarrk arrk 1 k odd andarrk arrk 1 k evenOr k jarrk arrk 1 k andarrk arrk 1 k odd Example 1input arr 9421078819output 5explanation arr1 arr2 arr3 arr4 arr5Example 2Input arr 481216output 2Example 3Input arr 100Output 1 Constraints1 arrlength 4 1040 arri 109