Pregunta de entrevista de Virta

Basic ML questions. The long coding question is a Data science problem