Pregunta de entrevista de Thoughtworks

To write test cases of method