• + 0 comments

    golang solution

    func summingSeries(n int64) int32 {
        mod := int64(1000000007)
        
        return int32(((n % mod) * (n % mod)) % mod)
    }