I have a dataframe, which consists of two columns as shown below. I want to compute Smith Water Similarity between all these sequences using the function defined below.