Spot the bug in the array sum

from C# fundamentals
C# 14 / .NET 10 beginner 4 min 1 issue to find

Find the boundary error in this array loop.

csharp
static int Sum(int[] values)
{
    int total = 0;
    for (int index = 0; index <= values.Length; index++)
    {
        total += values[index];
    }
    return total;
}
Open in playground
Report an error