Making sure that s1 is smaller . If it is greater , we recur we reversed parameters .
if ( s1 . Length > s2 . Length ) return isPower ( s2 , s1 ) ; String temp = s1 ; while ( ! isGreaterThanEqual ( s1 , s2 ) ) s1 = multiply ( s1 , temp ) ; if ( s1 . CompareTo ( s2 ) == 0 ) return true ; return false ; }