The following C program calculates and displays the value of the function f(x, y, z) = (x - z + y) when x = 5, y = 8, and z = 10. Implement this program in MIPS assembly with the stack.
int main() {
int x = 5;
int y = 8;
int z = 10;
int result = functionA(x, y, z);
printf("%d", result);
}
int functionA(int a, int b, int c) {
int p = a - c;
int q = p + b;
return q;
}