Virta Interview Question

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