Anomaly interview question

Binary Search problem Dynamic programming