String Concatenation Builder

You are given two strings str1 and str2.

  • Concatenate both strings.
  • Return the resulting string.

Example 1:

Input: str1 = "Hello", str2 = "World"

Output: HelloWorld

Example 2:

Input: str1 = "abc", str2 = "123"

Output: abc123

Now Your Turn!

Pick the correct output for the given input

Input: str1 = "TUF", str2 = "+"

Still unsure what the problem is asking ?

Let’s go through a few more examples, step by step, to make it clearer.

Constraints:

  • 1 ≤ length of str1, str2 ≤ 100
  • Strings may contain: lowercase and uppercase letters, digits, special characters
0
class Solution {
public:
string concatenate(string str1, string str2) {
//your code goes here
}
};
Test Case

Input:

Str1
Str2