Leetcode 1243. Array Transformation | Hello Interview