Talk is cheap. Show me the code.
Problem : https://www.hackerrank.com/challenges/java-negative-subarray/problem
Solution :
Problem : https://www.hackerrank.com/challenges/java-1d-array-introduction/problem