When names are recorded in a computer, they are sometimes written with the first name first, like ``Allen Downey,'' and sometimes with the last name first and a comma, like ``Downey, Allen.'' That can make it difficult to compare names and put them in alphabetical order.
A related problem is that some names contain capital letters in funny places. When computers compare characters, they usually put all the capital letters before the lower-case letters. We discussed the reasons for that in class, but the consequence is that computers often put names with capitals in the wrong order.
A good solution to this problem is to convert all names to a common format so that they can be compared using the built-in compareTo method. In this homework we will do that conversion. Later we will use this technique to sort a list of names.
If not, then it should assume that the name is in first name first format, and it should return a new string that contains the name converted to last name first format.
You will want to use the compareTo method, so you should read the documentation of that method carefully. Test it out with some simple cases to be sure you understand how it works.