I want to create a recursion function that will allow me to do this:
Say I have a string:
Name: John Micky
and another String
John : Sarah
Micky : Hubert
As we can see above because John is associated with Sarah I want to get to the string Sarah from John
The same case for Micky, Micky has an association wih Hubert..
so this is how I want it to be:
I have an array that contains the value John and Micky
I also have another array that has the value John and Sarah
when I access to John I want to get to Sarah and after I found Sarah, i wan't to be able to backtrack and go to Micky and find the association with Micky..
how do I do this?