Day 2: leetcode — JavaScript 30 Days challenge

2620. Counter