Solution from last VNPS problem.pdf