Domanda di colloquio di Google

Encountered a machine learning question, not coding at all