Pergunta de entrevista da empresa Amazon

Find the maximum value of Sum( i*arr[i]) with only rotations on given array allowed