CyberSwift interview question

factory pattern, dependency injection