MoneyTap Interview Question

Implement hashmap/debug a find prime code/minimum length substring with maximum distinct characters.