financial.com interview question

useState vs useReducer, class based React