Implementing longest_string1 function
Implementing longest_string2 function