Given an array of integers nums and an integer target, create a function that returns the two numbers such that they add up to target.
- created a function that takes two parameters, one takes an array of integers the other takes an integer.
- created an object that will store values.
- loop through the array from the first element to last.