[Easy] Counting Valleys (Hackerrank, javascript, implementation)

Published --