/r/dailyprogrammer easy challenge #7.