Doubt on Taking TestCases

*Can Anyone please Kindly make me understand that how to take input for testcases.
*Like the statement given below says first testcase and second test case .
*Please Kindly Solve My doubt.

For the first testcase, maximum subarray sum is generated by the entire array - 1+2+3+4 = 10
For the second testcase , maximum subarray sum is generated by the subarray {5,10} - 5+10 = 15