Nth Magical Number Leetcode Javascript Questions W3schools