I need a udf function to input array column of dataframe and perform equality check of two string elements in it. My dataframe has a schema like this.