Ecopia AI interview question

Dynamic programming and binary search.