reverse function

Reverse Function