A practice exercise from a pairing/refactoring session at a technical interview