You are given three strings.Write a script to return the number of operations to make it equal otherwise -1.For the first task, the solution determines the longest string where all characters are the same.For the second task, the solution checks if all strings have the same length and deletes any non-sorted columns.