Solutions in Java. Codility training