Problem 3 Solution

My solution for the problem 3 and another solution from the thread to be
understood.