Udemy REST Assured free

Given two strings, a and b, return the result of putting them together in the order abba, e.g. "Hi" and "Bye" returns "HiByeByeHi".

Check below code:

package com.test.strings;

public class abba 
{
	public static void main(String args[])
	{
		System.out.println(abba.makeAbba("Hi","Bye"));
		System.out.println(abba.makeAbba("Programs","Buzz"));
	}

	public static String makeAbba(String a, String b)
	{
		return(a+b+b+a);
	}
}

Output

HiByeByeHi
ProgramsBuzzBuzzPrograms