Adding 24 problem solution