how to solve inflection point - Search