Sample question found in an interview. This code is pulled from teh internet. TBD to understand.