Coviam Interview Question

Asked to implement a problem based on maps