Ramzi Kassem, also a law professor at City University of New York, will advise Mamdani and City Hall on legal matters.