Pitsy needs help in the given task by her teacher. The task is to divide a array into two sub array (left and right) containing n/2 elements each and do the sum of the subarrays and then multiply both the subarrays.
First line consists of T test cases. Only line of every test case consists of an integer N.
Print the answer by dividing array into left and right array and add their elements individually and then multiply both the array
1 2 3 4
4 5 6
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.