there n kid candy you give integer array candies candiesi represent number candy ith kid integer extracandie denote number extra candy havereturn boolean array result length n resulti true give ith kid extracandie great number candy kid false otherwisenote multiple kid great number candy Example 1input candy 23513 extracandie 3output truetruetruefalsetrue Explanation if extracandie Kid 1 2 3 5 candy great kid Kid 2 3 3 6 candy great kid Kid 3 5 3 8 candy great kid Kid 4 1 3 4 candy great kid Kid 5 3 3 6 candy great kidsExample 2input candy 42112 extracandie 1output truefalsefalsefalsefalse Explanation there 1 extra candykid 1 great number candy different kid give extra candyexample 3input candy 12112 extracandie 10output truefalsetrue Constraintsn candieslength2 n 1001 candiesi 1001 extracandie 50