Pergunta de entrevista da empresa Criteo

not that difficult, if you feel free to basic calculus.