Here are my implementations of some common interview questions