Pergunta de entrevista da empresa Wipro

Pattern design question and about pointers