CB4 interview question

Code a simple program that takes a representation of circle or square in a string, where this string represents the type (circle or square or rectangle etc) and the sizes. the program will return a sorted list of the string representations.