Criteo interview question

Leetcode-type easy and medium difficulty, data structures and algorithms.