To determine who among the listed foreigners was the first to visit India, we need to understand the historical context and timeline of their visits.
Comparing the timelines, Megasthenes was the first among these individuals to visit India. He lived in the 4th century BCE, much earlier than the others mentioned.
Conclusion: Therefore, the correct answer is Megasthenes. He was the first foreigner among the given options to visit India.