'X' is the wife of 'Y', 'Y' is the brother of 'Z' and 'Z' is the son of 'P'. How is 'P' related to 'X'?

Sister

Aunt

Brother

Father in Law

Ans : Father in Law
Explanation :

The relationship chart, based on the given problem can be worked out as given below.
'Y' is the brother of 'Z' who is son of "P' So. Z' is also the son of 'P' When 'P' is the father of 'Y' and X' is the wife of 'Y' then 'P is the father-in-law of 'X'

â€‹â€‹

Technical MCQ

A dedicated path is needed in ________ switching before the data is sent from the sender to the receiver but it is not needed in -------- switching.

Packet, time division

space division, packet

packet, circuit

circuit, packet

Ans : Circuit, Packet

Coding Question

There are N number of Pizza bowls and in each bowl there are ai pizzas . You can eat pizzas from any bowl but you cannot eat pizzas from two consecutive bowls . Find the maximum number of pizzas you can eat.

Input:
First line of input contains a positive integer T denoting number of test cases. For each test case, first line contains N denoting number of pizza bowls . Second line contains N space seperated integers where each of them denotes number of pizzas in ith bowl.

Output:
For each test case print the maximum number of pizzas you can eat.

Your Task:
This is a functional problem you don't need to take input just complete the function maxPizza() which accepts two parameters an integer N (number of bowls) and an array arr (contains number of pizzas in ith bowl) and returns the maximum number pizzas you can eat.

Constraints:
1 <= T <= 100
1 <= N <= 105
1 <= ai <= 109