Solve fs3.c