An implementation of an interview question for Rally Software.