How would you check if a year was a leap year?
Sigiloso
First I asked for the specific conditions for which a year would be considered a leap year. Once I had these, I formalized things such as input and output (given year as an integer, return a boolean), and then wrote a basic algorithm to deduce whether or not a year is a leap year.