I'm not sure you've completely described the problem fully. In this "game", are you only allowed to start from numbers in the first array, or can you go from the numbers in either array?
I can go from the number in either array,or start with any element in any of the two arrays.Thank you all for considering my question.I will try today.I tried to write a for loop based on index and value but its not working as expected.