
Find and return the sum of all elements in an array which are either divisible by 2 or by 3.
Line 1: N + 1 integers, where 1st integer denotes the size of array N and next N are elements of the array, separated by spaces
Output Format:
A single integer denotes the sum of all those numbers which satisfy the specified condition.
1<= N <=10^5)
4
3 5 6 7
9