#24. front3
front3
Background
Description
Given a string, we'll say that the front is the first 3 chars of the string. If the string length is less than 3, the front is whatever is there. Return a new string which is 3 copies of the front.
Format
Input
Output
Samples
Java
"JavJavJav"
Chocolate
"ChoChoCho"
abc
"abcabcabc"
Limitation
1s, 1024KiB for each test case.