Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
package pack;
class Solution {
public int strStr(String haystack, String needle) {
if(haystack.length()==0 && needle.length()==0)
return 0;
if(haystack.equals(needle))
return 0;