Functions and programs that cover common technical interview problems