Js Array Get Subarray Javascript Interview Bit