title: return index of the first letter of a specific substring of a string
body: <p>I am given a string and I wish to find out the index of the first character of a substring of that string whenever it appears the very first time in the parent string.</p>
  
  <p>For example, given a string "itiswhatitis" and the substring "is", the output should be 2.</p>