Manulife Interview Question

Leetcode 1, (two sum I think?)