SmartNews interview question

They are all codility problems.