Pergunta de entrevista da empresa BluePi

Given an 2D matrix rotate the matrix by 90 degree