Problem3 Solution