package main import ( "fmt" ) func main() { var arr []int var n, tmp int fmt.Scan(&n) for i := 0; i < n; i++ { fmt.Scan(&tmp) arr = append(arr, tmp) } fmt.Println(Process(arr, 0, len(arr))) } // Process [l, r) func Process(arr []int, l int, r int) int {...