This is the sample code from my Interview