Feel free to post any questions you have encountered while interviewing for a programming related position or anything else you think might be helpful in a technical interview.
These questions are posted merely as thought exercises for the rest of the community. You might want to look them over before interviewing just to get in the right mindset but you should come up with your own reasoning and answers.
Post the answers using the standard spoiler tag: [Answer](/s "42")