Write a GPU program that counts the number of elements with the integer value k in an array of 32-bit integers.
The program should count the number of elements with k in an array.
You are given an input array input of length N and integer k.
solve function signature must remain unchangedoutput variableInput: [1, 2, 3, 4, 1], k = 1 Output: 2
Input: [5, 10, 5, 2], k = 11 Output: 0
N ≤ 100,000,000input[i], k ≤ 100,000K = 501,010, N = 100,000,000