Tiger Analytics Interview Question

How Random Forest Works? How did they split for Categorical and numerical target variables?