Add solution to BadHorse of codejam