Driver code
public static void main ( String [ ] args ) { String str [ ] = { " geeksforgeeks " , " algorithms " , " stack " } ; String s = " algorithms " ; int n = str . length ; System . out . println ( strScore ( str , s , n ) ) ; } }