A circus is designing a tower routine consisting of people standing atop one another’s shoulders. For practical and aesthetic reasons, each person must be both shorter and lighter than the person below him or her. Given the heights and weights of each person in the circus, write a method to compute the largest possible number of people in such a tower. Keep in mind that you are computing the tallest tower possible, which may or may not include every person provided in the input.
Input file contains the height and weight of all the people, one per each line. (Height and weight are separated by a comma.)
In case that weight is provided first ./CircusTower -f "input.txt" --weightFirst
or in case that height is first ./CircusTower -f "input.txt"