Hungarian opposition leader Péter Magyar has brought about an end to Prime Minister Viktor Orbán's 16-year rule.