Given the following class and data structure below, I want to calculate the sum of count for each consecutive 3 element similar to following results:
public c