Solved some basic problems from codility