Synopsys interview question

i couldn't clear the first round : Basic Coding, binary search, sorting, etc