Given two strings S1 and S2 of equal lengths. Find the Lexicographically smaller string considering letters case insensitive.
Input strings can contain both uppercase or lowercase letters. But we have to consider letters case insensitive while comparing the strings. So, first of all convert both strings to either LOWERCASE or UPPERCASE. After that process each character of the stings simultaneously and compare their ASCII values.
Read about Lexicographical Order [here] 3
O(N) per testcase, where N is length of the string.
To be Updated Soon