202422 2nd star -- brute force 30 mins runtime