The 26-year-old “mastermind” who orchestrated Zohran Mamdani’s mayoral victory once boosted Mamdani's foes and chided his allies before making a career of politics.