title: Best Way to Find the Array Contains a Given String
body: <p>I have some arrays of strings and a function that gets a string and return the type of it (the array that the string belongs to)</p>
  
  <p>How can I do it with the best speed?</p>
  
  <pre><code>string arr1[] = {"a", "b", "c"};
  string arr2[] = {"d", "e", "f"};
  string arr3[] = {"g", "h", "i"};
  string arr4[] = {"j", "k", "l"};
  
  ...
  string getFamily(string input)
  {
  if(arr1.contains(input)
  return "TYPE_1";
  ...
  }
  </code></pre>
  
  <p>Thanks</p>