Phone interview: the second of two online technical rounds. You are given an array v of length n, where v[i] is the talent of the i-th person. Talents are represented by integers. You are also given talentCount, the total number of distinct talents. For each index i, find the minimum…