Part 2 was too hard for me, since I initially worked with range(s, e). It quickly became out of hand. A funnel method was instead used.