Solving Avg Array