APL (Dyalog Classic), 16 13 12 bytes
-3 thanks to @Adám
⍳∘≢+.×3⌽⊢+⌊(+/+\)1⌽⌽+⌊/
⊢+⌊⌽+⌊/
argreverse(arg) + min(arg)
3⌽1⌽
rotate 3 to the left, i.e. 1 to the rightleft
+.×+\
inner product, i.e. multiply element by element and sumpartial sums
⍳∘≢
the indices of the array: 1 2 3 4 (uses 1-based indexing, ⎕io←1+/
) sum