Goldman Sachs Interview Question

Select average price in several fruit by using C++, or matlab