Pergunta de entrevista da empresa Delhivery

Two Sum Problem ( The optimised solution which can work with duplicate numbers too)