I recently had the following Job Interview Question where I was only asked to suggest an algorithm and data structure that satisfies the following:
In the following q