OOPS Assignment 2
Class Person takes input as name and age of two persons as parameters. First it compares the name of both the persons, If names are equal then it compares the age. If names are not equal, It compares the length of the name. When length of the name is equal then it compares the age.