function myIndexOf(str1, str2) {
for(let i = 0; i < str1.length; i++) {
let p1 = i, p2 = 0
while(str1[p1] === str2[p2] && p2 < str2.length) {
p2++
p1++
}
if(p2 === str2.length) return i
}
return -1
}
function myIndexOf(str1, str2) {
for(let i = 0; i < str1.length; i++) {
let p1 = i, p2 = 0
while(str1[p1] === str2[p2] && p2 < str2.length) {
p2++
p1++
}
if(p2 === str2.length) return i
}
return -1
}