NCDEX interview question

Write code for bisection method?