Kyklo interview question

Implement this method using tdd.