Qualcomm Interview Question

I was asked some questions from Operating Systems and Object Oriented Programming. Later, I was asked to write code for a simple problem, that is to rotate a matrix by 90 degrees.