WinZO interview question

one Dp question and one binary search question