Driver code
public static void Main ( String [ ] args ) { String str1 = " PLEASEHELPIMTRAPPED " ; String str2 = " INAKICKSTARTFACTORY " ; int len = str1 . Length ; Console . WriteLine ( calculatesubString ( str1 , str2 , len ) ) ; } }