Program to find sum of the given series