Pergunta de entrevista da empresa FNZ

Design pattern. What is the problem that factory method pattern trying to solve? Can you explain?