Solved readline challenge 123.