Inside the add_comma() function, split the name in a list of parts with split(), the add a comma between index 1 and 0.

Make sure to pick parts = name.split(" "), followed by parts[1] + ", " + parts[0].