I want to ask the user to input a list of strings such as : ["i", "love you" , "so much", "so much"] and check if a equal string contains there and print the strings that most appear in ascending order. I wanted to know how could i do this either using a map or two foor loops.
I tried doing with one foor loop but is ineficient since i can't do this the other way around. I need to do this using 2 foor lops or a map but i don't how to implement the logic. Can anyone help me? Thanks