X interview question

Coding + general ML