#224. endUp
endUp
Background
Description
Given a string, return a new string where the last 3 chars are now in upper case. If the string has less than 3 chars, uppercase whatever is there. Note that str.toUpperCase() returns the uppercase version of a string.
Format
Input
Output
Samples
Hello
"HeLLO"
hi there
"hi thERE"
hi
"HI"
Limitation
1s, 1024KiB for each test case.