ICTAK01 - Editorial

Given a string ‘X’ and another string ‘y’ to be searched. Here ‘y’ is a substring of ‘X’. Find out the the starting position of the string ‘y’ in it’s last occurrence in the string ‘X’ (The position should be searched including whitespaces). If there is no occurrence or only one occurrence of the given string, the function should return -1.

//