fn max_sum(nums: &[i64]) -> i64 {
    // your move
}