[CTCI] Problem 1

Signed-off-by: Siddharth Goel <siddharth98391@gmail.com>