Align Technology interview question

easy math task about binary search