src/Result.java
public static int simpleArraySum(List<Integer> ar) {
	 int result = 0;
	Iterator<Integer> iterator = ar.iterator();
         while (iterator.hasNext()) {
		 result += iterator.next();
	}
	return result;
 }
// The function is expected to return an INTEGER.
The function is expected to return an INTEGER.
The function is expected to return an INTEGER .
public static int simpleArraySum(List<Integer> ar) {
	 int result = 0;
	Iterator<Integer> iterator = ar.iterator();
         while (iterator.hasNext()) {
		 result += iterator.next();
	}
	return result;
 }
public static int simpleArraySum ( List < Integer > ar ) { int result = 0 ; Iterator < Integer > iterator = ar . iterator ( ) ; while ( iterator . hasNext ( ) ) { result += iterator . next ( ) ; } return result ; }
The function is expected to return an INTEGER.
The function is expected to return an INTEGER .