my answers to the codility training questions