Miscellaneous interview program questions solved. I would add questions in to the code comment as soon as possible.