State Street interview question

Coding Question: To check if second strings is permutations of 1st string or not