X1254: squeezeString

Given an outside string of length 4, such as "(())", and an inside string, return a new string where the inside is squeezed in the middle of the outside string, e.g. "((sample))".

Examples:

squeezeString("<<>>","html") -> "<<html>>"
squeezeString("[[]]","List in a list") -> "[[List in a list]]"

Your Answer:

Feedback

Your feedback will appear here when you check your answer.