Visa Inc. Interview Question

Questions were based on sorting and two pointers