Solve the problem given in Problems/Binary-Search/Day-10/q002.md
Folder:
Problems/Binary-Search/Day-10/sol/your_name
File naming:
Solution1.cpp, Solution2.cpp, Solution3.cpp, …
or any other language
Each solution must include (inside the .cpp as comments):
Short problem statement
Approach
Time & space complexity
Example I/O (optional)
Clean, compiling C++ code
PLEASE UPLOAD YOUR SUBMISSION LINK TOO AS COMMENTS IN THE .cpp FILE
Please refrain from use of AI (even in approach statements)