Implement 3x3 matrix transforms and rotation | SIG (Susquehanna) Interview Question