HTC Global Services Interview Question

two sum leetcode, django ORM