Describe how you would identify strings that appear in every sub-array within a list of sub-arrays containing random strings.
Implement common_strings(subarrays). The input is a non-empty list of string lists, and repeated strings within one sub-array count once. Return the distinct strings present in every sub-array, ordered by their first appearance in the first sub-array.
def common_strings(subarrays):