Code Snippets that could be used in Job interview questions