HP Inc. interview question

How would I approach this ML problem (classification)