Write down the function, that given three components of name (first name, middle name or initial, and last name), returns single string object consisting of last name, followed by comma, and then first name and middle intitial, followed by a period. For instance, given "John", "Quincy", and "Doe", function must return string "Doe, John Q."