Prudential interview question

- finding gcd and what is a for loop and array list