prog assignment 1 algo2
2nd question.
TODO try to merge the 2 questions into one and just use a separate comparator instead.
submitted all 3 questions....ALL CORRECT