ServiceNow interview question

factory pattern usage in my project?