Pregunta de entrevista de Hikvision

Online test has a Leetcode Two sum question