Make Array Empty Leetcode Javascript Problems Solving With Fraction