Search in Rotated Sorted Array II in C++

Search in Rotated Sorted Array II in C++ is a notorious follow-up to the classic rotated array problem, frequently asked in technical interviews at Google, Meta, Amazon, and Microsoft. While Rotated Array I guarantees all elements are distinct, Rotated Array II introduces duplicate values (e.g., [2, 5, 6, 0, 0, 1, 2] or [1, 0, …