Genpact Interview Question

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