1662 Leetcode question solution

visit shbcf.ru