Redgate Software Interview Question

1. count the even number in an array. 2. code given and find the output.