Problem 1.2(C++) - Cracking the Coding Interview