final exam solution.pdf