Kyoto Robotics interview question

How to create a Jacobian matrix from a square matrix?