I have seen this interview question on a site and executed it

code:


public class Main
{
public static void main(String l[])
{
String a,b;