Teralytics Interview Question

Take home problem.