• + 0 comments

    My answer with Typescript, I am a bit surprised by this question, is it too simple?

    function twoStrings(s1: string, s2: string): string {
        for (let c of s1) if (s2.includes(c)) return 'YES'
        return 'NO'
    }