Leetcode Basic Array Questions In Cpp Cin