Time Complexity Of Find Function