Pregunta de entrevista de EPAM Systems

A simple algorithm and some questions about Design Patterns