Block interview question

Not leetcode style, but more on the practical side (implement a class with certain behavior, for example)