Nth Magical Number Leetcode Problems Javascript Tutorial W3schools