Leetcode Build Array from Permutation Javascript solution

Published --