Answered 1.4.
Extract some code to lib.
Merge branch 'master' of github.com:sa-wa-m/cracking_coding_interview_exercise