You are given an integer V with initial value set to 0. You are also given an array of distinct positive integers