Add solution to Beta problem on Codility.
Add simpler solution for Codility Beta challenge.