Implement a form reducer handling these actions:
{ type: 'change', field, value } — update single field.{ type: 'reset' } — back to initial.{ type: 'submit' } — set submitted: true.State shape: { values: {...}, submitted: boolean }.
solve(initialValues, actions) returns final state.
Sample tests