Collabera interview question

Two sum algorithm problem with a sorted array