Genpact interview question

ex. Formula for regression and implement it with random forest equation.