Trimble interview question

Skills test: code refactoring.