you give integer array nums integer x in operation remove leftmost rightmost element array num subtract value x note modify array future operationsreturn minimum number operation reduce x exactly 0 possible return 1 Example 1input num 11423 x 5output 2explanation the optimal solution remove element reduce x zeroExample 2input num 56789 x 4Output 1Example 3input num 3220113 x 10output 5explanation the optimal solution remove element element 5 operation total reduce x zero Constraints1 numslength 1051 numsi 1041 x 109