Align Technology Interview Question

easy math task about binary search