completed dailyprogrammer #188 Easy