Implemented Problem 35