Mamdani solves issues like they’re puzzles he was destined to crack.