An array has a fixed length set when it is created: int[] nights = { 2, 3, 1 }; or new int[7], whose slots start at 0. Indexes run from 0 to Length - 1; reading nights[nights.Length] throws IndexOutOfRangeException.
C# can index from the end: nights[^1] is the last item and nights[^2] the one before. A range copies a slice into a new array: nights[1..3] holds indexes 1 and 2 (the end is excluded), nights[..2] the first two, and nights[1..^1] everything but the ends.
Arrays are reference types. Assigning one array variable to another shares the same array, so changing one changes both. When a method must not touch the caller's data, copy it first with a range ([..]), ToArray() or Array.Copy.
Index from the end with ^, slice with ranges, and copy so the original stays unchanged.