roller coaster in javascript
swap case in javascript