#245. frontTimes
frontTimes
Background
Description
Given a string and a non-negative int n, we'll say that the front of the string is the first 3 chars, or whatever is there if the string is less than length 3. Return n copies of the front;
Format
Input
Output
Samples
Chocolate"
"ChoCho"
Chocolate"
"ChoChoCho"
Abc"
"AbcAbcAbc"
Limitation
1s, 1024KiB for each test case.