Js Array Get Subarray Javascript Interview Coding Questions