def find_similar_chars_n(str1, str2):
  """Returns a string containing only the characters found in both strings
  Complexity: O(N)
  """
  return ''.join(sorted([char1 for char1 in str1 if char1 in str2]))