My solutions for question at book "Cracking the coding Interview"