Anthropic Interview Question

CodeSignal test to iteratively implement basic functions. There were four steps. Reading ahead and having the context of future steps might have helped, since it could require refactoring and there's not much time.