you give integer array num length nAssume arrk array obtain rotate num k position clockwise we define rotation function F num followFk 0 arrk0 1 arrk1 n 1 arrkn 1return maximum value F0 F1 fn1the test case generate answer fit 32bit integer Example 1input num 4326output 26explanationf0 0 4 1 3 2 2 3 6 0 3 4 18 25f1 0 6 1 4 2 3 3 2 0 4 6 6 16f2 0 2 1 6 2 4 3 3 0 6 8 9 23f3 0 3 1 2 2 6 3 4 0 2 12 12 26so maximum value F0 F1 F2 F3 F3 26example 2input num 100output 0 Constraintsn numslength1 n 105100 numsi 100