A distinct string is a string that occurs exactly once in an array.
Given an array of strings arr and an integer k, return the arr. If arr contains fewer than k distinct strings, return an empty string "".
Note that strings are evaluated in the order of their appearance in arr.
Constraints:
k arr.length
arr[i].length
arr[i] consists of lowercase English letters.
A distinct string is a string that occurs exactly once in an array.
Given an array of strings arr and an integer k, return the arr. If arr contains fewer than k distinct strings, return an empty string "".
Note that strings are evaluated in the order of their appearance in arr.
Constraints:
k arr.length
arr[i].length
arr[i] consists of lowercase English letters.