HF RL Explorer

string utilities: fix bug

string utilities: fix bug: a task in smol-software-harbor (Harbor dataset). str reverse() in src/strutils.c swaps the terminating NUL into the string, so the result is empty or garbled ( make -B test fails). Fix the off-by-one error without changing the tests.

The task

`str_reverse()` in `src/strutils.c` swaps the terminating NUL into the string, so the result is empty or garbled (`make -B test` fails). Fix the off-by-one error without changing the tests.

Part of efederici/smol-software-harbor.