Python solutions for CTCI chap 1 q 1 to 3

Here are some python solutions to the sample interview questions. More to come, although I can't promise the solutions are optimal.