จงสร้างฟังก์ชั่นที่ รับค่า string เข้ามาแล้ว ส่งค่า string ที่กลับลำดับตัวอักษรออกมา
Examples
reverse(” hello world”) ➞ “dlrow olleh”
reverse(“the quick brown fox.”) ➞ “.xof nworb kciuq eht”
จงสร้างฟังก์ชั่นที่ รับค่า string เข้ามาแล้ว ส่งค่า string ที่กลับลำดับตัวอักษรออกมา
Examples
reverse(” hello world”) ➞ “dlrow olleh”
reverse(“the quick brown fox.”) ➞ “.xof nworb kciuq eht”