Add description and solution in C++ of search for a range problem