CodeBreaker Kata without ifs