How does this happen? Same answer but it says its wrong!


#1


#2

Incase of conflict , return the substring which occurs first ( with the least starting index ).


#3

check for spaces after your answer