Notion Labs Interview Question

1 array question,1 binary search