Q. What is the purpose of the useReducer Hook in React state management?