Bulls and cows solver.