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