Leetcode Basic Javascript Questions To Solve An Equation