Mr. Magyar’s success in the Hungarian election is fueled in large part by widespread public anger at corruption and concern about sluggish economic growth.