FARFETCH interview question

Fairly straightforward ML and Python coding problems.