lots of repetitive code in some of the test cases because I copied and pasted like a noob rather than just creating a function - pls no b lazy
lots of repetitive code in some of the test cases because I copied and pasted like a noob rather than just creating a function - pls no b lazy