Pregunta de entrevista de IBM

Don't remember, various coding questions