This question is regarding the solution to the (first half of) Day 5 problem for Advent of Code 2020.
I have written two different functions to get to the same result