Partition Array Into Two Parts Leetcode Javascript Questions For Beginners