sum problem

use hash map or squeeze rule