Perm Missing Elem(Codility) impl in java