def abbaize(a,b):
	return a+b+b+a #return the sum of input string followed by twice repetition of second input string
	               #followed by additon of first input string again

print abbaize('bro','hi') 