Some solutions to Codility Challenges