Pregunta de entrevista de Chinsay

Basic algorithmic code questions, Architect patterns.