Solve fs5.c