Make Array Empty Leetcode Javascript Problems Solving For X