Good day everyone.

Can someone help me on how to solve the follow questions on c++ programming

1. Write a function that accepts an array of non-negative integers and returns the second largest integer in the array. Return -1 if there is no second largest.

2. Write a function that takes an array of integers as an argument and returns a value based on the sums of the even and odd numbers in the array. Let X = the sum of the odd numbers in the array and let Y = the sum of the even numbers. The function should return X - Y

3. Write a function that accepts a character array, a zero-based start position and a length. It should return a character array containing containinglengthcharacters starting with thestartcharacter of the input array. The function should do error checking on the start position and the length and return null if the either value is not legal.

Thanks i appreciate in advance