Pergunta de entrevista da empresa EPAM Systems

A simple algorithm and some questions about Design Patterns