Amazon interview question

Basic ML questions.