Neeva Interview Question

LC medium using hashmap and arrays