Criteo interview question

Brain teasers to assess logical thinking Python assignment