Analytics Fire Interview Question

Four questions on codility