HashedIn by Deloitte interview question

Program to find out whether the given string is a snowball string or not