input: Write a python function to read an Excel file and insert its values into a database.
  assert insert_into_db('<yourfilename>', '<yourserver>', '<yourdatabase>', '<yourusername>', '<yourpassword>') == "Data Inserted Successfully"
  assert insert_into_db('testdata.xlsx', 'server123', 'testdb', 'user1', 'pass123') == "Data Inserted Successfully"
output: def insert_into_db(filename, server, database, username, password):
      import pandas as pd
      import pyodbc
  
      # Read the Excel file
      df = pd.read_excel(filename)
  
      # Establish connection to the database
      conn_str = (
          f"DRIVER={{SQL Server}};"
          f"SERVER={server};"
          f"DATABASE={database};"
          f"UID={username};"
          f"PWD={password}"
      )
      conn = pyodbc.connect(conn_str)
      cursor = conn.cursor()
  
      # Insert data into the database
      for index, row in df.iterrows():
          columns = ", ".join(row.index)
          placeholders = ", ".join(["?"] * len(row))
          sql = f"INSERT INTO <your_table> ({columns}) VALUES ({placeholders})"
          cursor.execute(sql, tuple(row))
  
      conn.commit()
      cursor.close()
      conn.close()
  
      return "Data Inserted Successfully"