Cryptarithmetic Problem Using Python