Pergunta de entrevista da empresa IBM

Design pattern questions in written round.