Pergunta de entrevista da empresa Amazon

Stock span problem Rotate a matrix by 90 degrees.