SimpleDataClass with Sum and Average Subfunctions

Asked at Amazon · Coding & Leetcode-style Questions · Difficulty: Easy

Implement a simple data class with two subfunctions. The requirements for the subfunctions are as follows:

Loading the problem…