Categories
Medium Problems

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

จงเขียนฟังก์ชั่นที่รับ string เข้าไปแล้วส่ง string ใหม่ออกมา โดยให้แยกตัวอักษรแต่ละตัวด้วยช่องว่าง (space)

Examples

spaceMeOut(“space”) ➞ “s p a c e”

spaceMeOut (“far out”) ➞ “f r o u t”

spaceMeOut (“elongated musk”) ➞ “e l n g t e d m s k”

Leave a Reply