Have two variables
- long counter
- long sum
use them wisely while iterating through the LL.

at the end print avg=sum/counter