GlobalLogic interview question

Matlab codes, simulik blocks, kinematics