Walmart Global Tech interview question

Two sum target One dictionary coding question. Basic python theory concepts