Pergunta de entrevista da empresa ServiceNow

factory pattern usage in my project?