Teralytics interview question

Take home problem.