The candidate will complete this problem in stages to gauge skills and ability. The candidate can implement the solution in the language of their choice.
The problem consists of multiple stages:
- Create a class to represent a date range.
- Add a method to determine if one date range is equal to another.
- Add a method to determine if one date range overlaps another.
- Add a method to merge a date range with another date range.
- Add a method taking a list of date ranges and return a list of date ranges where all overlapping date ranges in the original list are merged.
The candidate will create method accepting an integer as the height. The method will need to print out lines of 'x' characters creating a triangle pattern.