Answer to Question 31A-3

int sum(ConstList L)
{
  if(L == NULL)
  {
    return 0;
  }
  else
  {
    return L->head + sum(L->tail);
  }
}