input: Write a function to rotate a square matrix clockwise.
  assert rotate_sqr_matrix_clockwise([[1, 2], [3, 4]]) == [[3, 1], [4, 2]]
  assert rotate_sqr_matrix_clockwise([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) == [[7, 4, 1], [8, 5, 2], [9, 6, 3]]
  assert rotate_sqr_matrix_clockwise([[1]]) == [[1]]
output: def rotate_sqr_matrix_clockwise(matrix):
      n = len(matrix)
      result = [[0] * n for _ in range(n)]
      for i in range(n):
          for j in range(n):
              result[j][n - 1 - i] = matrix[i][j]
      return result