Company: Oracle_27oct
Difficulty: medium
Ensemble Model Selection Problem Description A machine learning team is building ensembles by selecting models based on their accuracy scores, represented by the array modelAccuracies . A valid ensemble must satisfy the following conditions: It contains at least minModels models. Every model in the ensemble has an accuracy score within the range [minAccuracy, maxAccuracy] (inclusive). Implement a function that determines how many valid ensembles can be formed. The function countValidEnsembles takes four inputs: int modelAccuracies[n] : the accuracy scores of available models int minModels : the minimum number of models required in an ensemble int minAccuracy : the minimum allowed accuracy score of a model in an ensemble int maxAccuracy : the maximum allowed accuracy score of a model in an ensemble The function should return the number of valid ensembles that can be formed. int countValidEnsembles(vector<int> modelAccuracies, int minModels, int minAccuracy, int maxAccuracy) { // F