Driver code
public static void main ( String [ ] args ) { String x = " skege " ; String y = " geeksforgeeks " ; if ( xExistsInY ( x , y ) ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; } }