Derive max distinct frequencies for n items | Meta Interview Question