Count Prefixes of a Given String Solution Java
class Solution {\n  public int countPrefixes(String[] words, String s) {\n    return (int) Arrays.stream(words).filter(word -> s.startsWith(word)).count();\n  }
class Solution {\n  public int countPrefixes(String[] words, String s) {\n    return (int) Arrays.stream(words).filter(word -> s.startsWith(word)).count();\n  }\n}\n
['Array', 'String']