Binary search occurence

why is ans=-1 in the beginning

The built in function returns -1 if the key element is not present in the sorted array.