Ruby Alphametics Solver