Leetcode Subarray From Array Value