Nth Magical Number Leetcode Problems Javascript W3schools