Array Based Leetcode Problems Two