Leetcode 2295. Replace Elements in an Array | Hello Interview