class Solution {
public:
int getNumberSameAsIndex(vector[HTML_REMOVED]& nums) {
int len=nums.size();
int l=0,r=len-1;
while(l[HTML_REMOVED]=mid) r=mid;
else l=mid+1;
}
if(nums[l]==l) return l;
else return -1;
}
};