Konrad Group interview question

two sum leet code question