Pattern Program In Leetcode Javascript Practice Questions