Sum of fifth powers of the first n natural numbers
Basic Accuracy: 23.08% Submissions: 26 Points: 1
Given a number N.Find the sum of fifth powers of natural numbers till N i.e. 15+25+35+..+N5.
The sum is calculated as 15+25=1+32=33.
The sum is calculated as 15+25+35
You don't need to read input or print anything.Your task is to complete the function sumOfFifthPowers() which takes an integer N as input parameter and returns the sum of the fifth powers of Natural numbers till N.
Expected Time Complexity:O(1) Expected Auxillary Space:O(1)