LinkedIn interview question

basic ML and stats question. coding.