Problem 2 in JS
Cleaner logic for number 2 in JS
Problem 002 in Go