Unique Art | HackerRank

Find the number of elements that appear exactly once in each query subarray.