#292. extraFront
extraFront
Background
Description
Given a string, return a new string made of 3 copies of the first 2 chars of the original string. The string may be any length. If there are fewer than 2 chars, use whatever is there.
Format
Input
Output
Samples
Hello
"HeHeHe"
ab
"ababab"
H
"HHH"
Limitation
1s, 1024KiB for each test case.