Locatee Interview Question

Logical thinking, coding, time complexity