leetcode 1470 in javascript

welcome to shbcf.ru