HashedIn by Deloitte Interview Question

DS related to arrays, string manipulation, recursion