Day 3: leetcode — JavaScript 30 Days challenge

2704. To Be Or Not To Be