Language of Masai XI
EasyP3Coding
If the lowercase string s starts with a vowel (a, e, i, o, u), return s with hulk appended to its end. Otherwise return s with thor appended.
Example 1
- Input
- s = "apple"
- Output
- "applehulk"
Example 2
- Input
- s = "banana"
- Output
- "bananathor"
Example 3
- Input
- s = "a"
- Output
- "ahulk"
Constraints
- 1 <= s.length <= 100
- s consists of lowercase letters.
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 11. ⌘Enter runs, ⌘⇧Enter submits.