Meta Interview Question

Code a 3D rotation in C++.