Company: BNY_mellon
Difficulty: medium
Question 1 Problem Description When building a computing cluster consisting of several machines, two parameters are most important: speed and reliability. The quality of a computing cluster is the sum of its machines' speeds multiplied by the minimum reliability of its machines. Given information about several available machines, select machines to create a cluster of less than or equal to a particular size. Determine the maximum quality of cluster that can be created. Complete the function `maxClusterQuality`. The function has the following parameters: - `int speed[n]`: an integer array of size `n`, such that `speed[i]` is the speed of the `i`th machine - `int reliability[n]`: an integer array of size `n`, such that `reliability[i]` is the reliability of the `i`th machine - `int maxMachines`: an integer denoting the maximum number of machines you want in a cluster The function should return an `int` denoting the maximum quality of a computing cluster that can be built. Examples Exampl