Halliburton Interview Question

write a regression algo for ml