Tesla interview question

Create an inverse kinematics solver.