J.P. Morgan Interview Question

Implement binary search how do you know if a coin is biased