Reverse Method Python String Functions Geeksforgeeks Javascript