You might know Cassidy Williams – she’s been publishing her awesome newsletter for years now, and each issue includes a fun interview question to solve.
Here’s the idea: solve it in Ruby, share your solution with her, and then drop it here too! It’s a great way to learn from each other, get inspired by different approaches, and have some good discussions.
To keep things tidy, I’ll be sharing a new question here each week. Feel free to follow along!
This week’s question: February 2026 is a perfect month! Write a function that returns the closest previous and next perfect month around the given Gregorian year.