import java.util.*; public class ReverseEqual { public boolean checkReverseEqual(String s1, String s2) { // write code here if(s1.length()==0 && s2.length()==0){ return false; } if((s1+s1).contains(s2)){ return true; }else{ return false; } } }
import java.util.*; public class ReverseEqual { public boolean checkReverseEqual(String s1, String s2) { // write code here if(s1.length()==0 && s2.length()==0){ return false; } if((s1+s1).contains(s2)){ return true; }else{ return false; } } }