Halliburton interview question

write a regression algo for ml