@@ -0,0 +1,628 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=13230%0A%0Aimport java.util.List;%0Aimport java.util.ArrayList;%0A%0Apublic class SumOfPower %7B%0A%09public static int findSum(int%5B%5D array) %7B%0A%09    List%3CInteger%3E listArray= new ArrayList%3CInteger%3E();%0A%09    for (int i = 0; i %3C array.length; ++i) %7B%0A%09   %09listArray.add(array%5Bi%5D);%0A%09    %7D%0A%09    %0A%09    int sum = 0;%0A%09    for (int i = 0; i %3C array.length; ++i) %7B%0A%09    %09for (int j = i+1; j %3C= array.length; ++j) %7B%0A%09    %09%09List%3CInteger%3E subsequence = listArray.subList(i, j);%0A%09    %09%09for (Integer element : subsequence) %7B%0A%09    %09%09%09sum += element;%0A%09    %09%09%7D%0A%09%09%7D%09    %09%0A%09    %7D%0A%09%09%0A%09    return sum;%0A%09%7D%0A%7D%0A

Create SumOfPower.java