To write a program that reads a person name in the following format: first name then middle name or initial, and then last name. the program then output the name in the following format:
Last_name, First_name , Middle initial.
Example the input
Mary Average User
should produce output
User, Mary A.