Driver code
public static void main ( String args [ ] ) { String str1 = " PLEASEHELPIMTRAPPED " ; String str2 = " INAKICKSTARTFACTORY " ; int len = str1 . length ( ) ; System . out . println ( calculatesubString ( str1 , str2 , len ) ) ; } }