Google Interview Question

Two pointer Technique with follow up and Hashing