i wrote this code but it is giving wrong answers in a few test cases . what am i doing in this code is this:-
take input as string calculate length of string. declare an array of size length +1. store values in the array as per sign. arr is set at 1 by default. now count the no. of unique nos in the array by storing unique elements in a map.