Belvedere Trading interview question

Machine learning, linear regression based on an array