1. Inserting a New User ID into a Sorted List
Software DeveloperBackground
A developer manages a sorted array of user IDs for a database and needs to add a new user while keeping the list ordered.
Problem
Manually finding the insertion point is inefficient and risks breaking the sort order.
How to use
Input the sorted array, e.g., [101, 205, 307], and the new ID, e.g., 250, into the tool.
Outcome
The tool returns index 2, indicating that 250 should be inserted at position 2 to maintain ascending order.