Explained the solution for part A of problem number 2