Find sum of N terms of series 1, (1+4) , (1+4+4^2), (1+4+4^2+4^3), .....
Given a positive integer, N. Find the sum of the first N term of the series- 1, (1+4), (1+4+42), (1+4+42+43), ...., till N terms Examples: Input: N = 3Output: 27 Input: N = 5Output: 453 Approach: 1st term = 1 2nd term = (1 + 4) 3rd term = (1 + 4 + 4 ^ 2) 4th term = (1 + 4 + 4 ^ 2 + 4 ^ 3) . . Nth te