Implemented Problem 25