Pergunta de entrevista da empresa IBM

Don't remember, various coding questions