Checkout Kata in Java