Pergunta de entrevista da empresa financial.com

useState vs useReducer, class based React