Add solution to Codility Zeta challenge.