Habuild Interview Question

They asked leetcode problem make array 0 which is a leetcode medium