Some programming problems done to prepare for my Microsoft interview