adding new implementation for reverse string and Palidrome test values