Consider the following code snippet: public static int sum(int n) { if (n == 0) { return 0; } else { return n + sum(n - 1); }} What does this code calculate? a) The factorial of n. b) The absolute value of n. c) The sum of natural numbers from 1 to n. d) The remainder when n is divided by 2.