split the array there is an array val of n integers . a good subarray is defined as
By Curtis Kihn at Oct 02 2020