input: Write a function to perform multithreading to calculate squares of numbers.
  assert calculate_squares([1, 2, 3, 4, 5]) == [1, 4, 9, 16, 25]
  assert calculate_squares([6, 7, 8, 9, 10]) == [36, 49, 64, 81, 100]
  assert calculate_squares([10, 20, 30]) == [100, 400, 900]
output: import threading
  
  def calculate_squares(numbers):
      result = [0] * len(numbers)
      threads = []
  
      def worker(i, n):
          result[i] = n * n
  
      for i, number in enumerate(numbers):
          thread = threading.Thread(target=worker, args=(i, number))
          threads.append(thread)
          thread.start()
  
      for thread in threads:
          thread.join()
  
      return result