input: Write a function to generate a bar chart visualization using Matplotlib that displays the top 5 most popular programming languages based on the given data. The function should take two lists as input: one for the names of the programming languages and another for their respective popularity percentages. Display the bar chart with appropriate titles and labels.
  assert generate_bar_chart(["Python", "Java", "C++", "Javascript", "C#"], [45, 25, 15, 10, 5])
output: import matplotlib.pyplot as plt
  
  def generate_bar_chart(languages, percentages):
      top_languages = languages[:5]
      top_percentages = percentages[:5]
      
      plt.bar(top_languages, top_percentages)
      plt.title("Top 5 Most Popular Programming Languages")
      plt.xlabel("Programming Languages")
      plt.ylabel("Popularity Percentage")
      plt.show()