Easy Question Of Leetcode Javascript Solution