https://rakesh-trri.medium.com/find-maximum-value-of-sum-i-arr-i-with-only-rotations-on-given-array-allowed-f91a4a4d8813