We are given two operands represented by words with capital letters (each digit of the number replaced by a capital letter), an operator which can be either + or - or * or / and the result of applying the operator to the 2 operands (in order) represented by a word in the same manner as the operands.
To represent a number as a word (as in the case of the two operands and the result) each digit of the number is replaced by a capital letter.
- We need to find the mapping of each letter to the corresponding digit (0-9)
- The mapping should be such that when each letter is replaced by the corresponding digit according to the mapping, the two operands (in order) when operated by the operator produces the result with its letters replaced by the corresponding digits according to the mapping
- Each letter maps to a unique digit