What is the time complexity (excluding input) of this function?
void CompareAllPairs(int[] arr) { for (int i = 0; i < arr.Length; i++) for (int j = i + 1; j < arr.Length; j++) Console.WriteLine($"{arr[i]},{arr[j]}"); }
n = 5