Created an array of fruit with a while loop, for loop and foreach loop.