You can view the question at https://www.hackerrank.com/challenges/sparse-arrays/ Question Explanation You are give a array of string such as ["aba", "baba", "aba", "xzxb"] and you are required to count the number of occurrence of each query such as ["aba", "xzxb", "ab"] in the array of string, [“aba”, “baba”, “aba”, “xzxb”] : “aba”= 2
[“aba”…