Another Catriona Agg Problem. I thought this was a fun one. Let me know if you know another way to solve it!