Google Interview Question

how to modify the code to be allowed the implementation of a unit test