2. Write a dynamic integer array class (you can use CMyArray as a starting point) that implements the following requirement:
• Condition (mArray1 == mArray2) should be satisfied if both arrays are of the same length and contents are equal. n
• Condition (mArray1 < mArray2) should be satisfied if array 1 has fewer elements than array 2 or, if they are the same size, if the sum of the contents of array 1 is less than that of array 2.