Problem Description
A = "abcdefghijklmnopqrstuvwxyz"
Input 2:
A = "interviewbit"
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
Output 2:
{0, 1, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0, 1, 1, 0, 0, 0}
Every charcater is present once in the string.
Explanation 2:
'b' is at indices 10. 'e' is at indices 4, 8 'i' is at indices 1, 7, 11 'n' is at indices 2 'r' is at indices 5 't' is at indices 3, 12 'v' is at indices 6 'w' is at indices 9 Rest of the characters are not present in the string
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.