Capitalize Word

L1 Easy Strings
Concept
Rebuilding a string from parts — a singled-out first character plus the rest — is a core string manipulation habit.
Return s with only its first character capitalized. If s is empty, return an empty string.
Examples
▸ s = "swift"
→ "Swift"
▸ s = "Swift"
→ "Swift"
▸ s = ""
→ ""
Progressive Hints
Hint 1 · Nudge
You're rebuilding the word from two pieces: the first letter, and everything after it.
Hint 2 · Plan
Handle the empty string first. Uppercase the first character, then attach the rest of the string unchanged. Return the rebuilt string.
Hint 3 · Approach
If s is empty return empty. Else return uppercase(first character) with the remaining characters appended.
Output
// Run your code to see the output here.