

You are given ‘children’ = [12, 20, 5], and ‘extraCandies’ = ‘9’
If you give all the candies to the child at position 1, the child will have 21 candies, which is the highest among all children.
If you give all the candies to the child at position 2, the child will have 29 candies, which is the highest among all children.
If you give all the candies to the child at position 3, the child will have 14 candies, which is not the highest among all children.
Hence the answer is [True, True, False].
The first line of input contains the integer ‘T’ representing the number of test cases.
The first line of each test case contains two integers, ‘N’ and ‘extraCandies’, representing the number of children and extra candies.
The second line of each test case contains ‘N’ space-separated integers, denoting the elements of the array ‘children’ where ‘children[index]’ represents the number of candies present at child at ‘index’ position.
For each test case, print an array of boolean values. ‘True’ is present at position ‘index’ if the child at position ‘index’ has the maximum number of candies among all children after receiving extra candies. Otherwise, ‘False’ is present.
Print a separate line for each test case.
You do not need to print anything. It has already been taken care of. Just implement the function.
1 <= T <= 10
2 <= N <= 10^6
1 <= children[i] <= 10^9
1 <= extraCandies <= 10^9
Time Limit: 1 sec
In this approach, we will create an empty array results. We will iterate through each child in the children array.
Algorithm:
In this approach, we will try to find the maximum number of candies a child has, and then we add extraCandies to each child value, then for each, and we check if
Algorithm: