Nones interview question

2 pointer approach to search