You have two arrays. One shows the names of the people names, while the other shows their occupation jobs. Your task is to create a hash displaying each person to their respective occupation.
| Names | Jobs |
|---|---|
| Annie | Teacher |
| Steven | Engineer |
| Lisa | Doctor |
| Osman | Cashier |
names = ["Victor", "Paul", "Eddie"]
jobs = ["Vet", "Nurse", "Web Developer"]
assign_person_to_job(names, jobs) ➞ {
"Victor" => "Vet",
"Paul" => "Nurse",
"Eddie" => "Web Developer"
}names array is the same as the index of the person's job in the jobs array, as shown in the table above.