[contest:2025][problem:2025A] One approach to two screen is compare both string from starting of element. Iff match is there continue comparing and count no of characters matched as soon as the character differs even at the first index stop comparing Total time would be= count+1+(length of first String-count)+(length of second string -count)