Update problems.py

commit to reimplement reverse.py