Given two strings  S1 and S2 . You have to concatenate both the strings and print the concatenated string.
Example 1:
Input:
S1 = "Geeksfor"
S2 = "Geeks"
Output: GeeksforGeeks
Explanation: Combined "Geeksfor" and "Geeks"
 
Example 2:
Input:
S1 = "Practice"
S2 = "Hard"
Output: PracticeHard
Explanation: Combined "Practice" and "Hard"
 
Your Task:  
You dont need to read input or print anything. Complete the function conCat() which accepts two strings S1 and S2 as input parameter and returns concatenated string.
Expected Time Complexity: O(|S1| + |S2|) .
Expected Auxiliary Space: O(|S1| + |S2|) .
where N is the length of a String
Constraints:
1 <= |S1| , |S2| <= 10^{5}
|S| denotes the length of the string S.

Source: geeksforgeeks | Difficulty: EASY
Tags: String algorithms

Data structures

Starter code: #User function Template for python3

class Solution:

    def conCat(self,s1,s2):
        # code here


Solutions:
class Solution:

	def conCat(self, s1, s2):
		add = s1 + s2
		reverse = add[::-1]
		return add


class Solution:

	def conCat(self, s1, s2):
		return s1 + s2


class Solution:

	def conCat(self, s1, s2):
		for i in s2:
			s1 += i
		return s1


class Solution:

	def conCat(self, S1, S2):
		return S1 + S2


class Solution:

	def conCat(self, s1, s2):
		a = str(s1) + str(s2)
		return a


class Solution:

	def conCat(self, s1, s2):
		temps = ''
		for char in s1:
			temps += char
		for char in s2:
			temps += char
		return temps


class Solution:

	def conCat(self, s1, s2):
		temp = ''.join([s1, s2])
		return temp