Thoughtworks interview question

They asked about the function you wrote and how you'd approach unit testing it using TDD.