Test Code I have written for various interview questions