Hikvision Interview Question

Online test has a Leetcode Two sum question