Skip to content
Onsite

Language of Masai

EasyP3Coding

If the lowercase string s starts with a vowel (a, e, i, o, u), return s with masai placed in front of it. Otherwise return s with school appended to its end.

Example 1

Input
s = "apple"
Output
"masaiapple"

Example 2

Input
s = "banana"
Output
"bananaschool"

Example 3

Input
s = "a"
Output
"masaia"

Constraints

  • 1 <= s.length <= 100
  • s consists of lowercase letters.

Hints

Run checks the 3 visible tests, Submit all 11.