IBM interview question

Testing methods and write tests