Interview Problems - Sample Code