common interview programming questions, done in objective-C