State Street Interview Question

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