✔ Kotlin Solution || SIMPLE Two Pointer || EXPLAINED
check if start and target have the same amount of letters\n2. have two pointers to get the next letter in start and target\n3. check if the letter from start ca
1. check if start and target have the same amount of letters\n2. have two pointers to get the next letter in start and target\n3. check if the letter from start can be moved to the same index as the letter from target\n\n```\n    fun canChange(start: String, target: String): Boolean {\n        val str = start.replace("_", "")\n        val str2 = target.replace("_", "")\n        if (str.length!=str2.length) return false\n        var i = 0\n        var j = -1\n        while (i<target.length) {\n            if (target[i] != \'_\') {\n                j++\n                while (j<start.length-1 && start[j]==\'_\') j++\n                if (start[j]!=target[i]) return false\n\n                if (start[j]==\'L\') if (i>j) return false\n                if (start[j]==\'R\') if (i<j) return false\n            }\n            i++\n        }\n        return true\n    }\n```
['Two Pointers', 'Kotlin']