HashedIn by Deloitte Interview Question

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