Telephone word combinations problem solution