Categories
Medium Problems

โจทย์ข้อที่ MX0012

จงสร้างฟังก์ชั่นที่ รับค่า string เข้ามาแล้ว ส่งค่า string ที่กลับลำดับตัวอักษรออกมา

Examples

reverse(” hello world”) ➞ “dlrow olleh”

reverse(“the quick brown fox.”) ➞ “.xof nworb kciuq eht”

Leave a Reply