#57. front22
front22
Background
Description
Given a string, take the first 2 chars and return the string with the 2 chars added at both the front and back, so "kitten" yields"kikittenki". If the string length is less than 2, use whatever chars are there.
Format
Input
Output
Samples
kitten
"kikittenki"
Ha
"HaHaHa"
abc
"ababcab"
Limitation
1s, 1024KiB for each test case.