added codility lesson 1 task 1 solution (in C)