Adding 49 problem solution