Leetcode Basic Problems In Javascript Semicolons