Apple interview question

Implement methods to translate and rotate a transformation matrix