Explained the solution for part B of problem number 2