Code for Interview questions