My Solution in Ruby:
It was helpful to sketch this out on paper first. Lots of math to confuse myself with.
I don’t think this is the most optimized solution, but it’s pretty easy to follow, at least IMO.
Note to self:
array.delete_at(n) only returns the deleted value, NOT the array without the deleted value.