Adding 16 problem solution