various sample code written for interviews