Stepping Stone Lab Four: LoopsIT 511: Object Oriented App Develop Southern New Hampshire University 08:35:02 GMT -05:00Code ReflectionThe purpose of this code lab is to utilize the for loop function, the branch structure, and the array to store the list of ingredient names added by the user. The user is allowed to add ingredients until they indicate that they are done, and the program then iterates through the ingredient list to print the ingredients. Initially, I created multiple if-else branches to prompt the user to enter 'n' or 'y'. Then, re-prompt again if the user inputted other than 'n' or 'y' was received. One challenge was creating an if-else branch within another if-else branch, which resulted in the code failing to re-prompt the user to re-enter 'n' or 'y'. I revisited the relevant material in the zyBooks to address this issue to reinforce my understanding of multiple branches. Subsequently,I conducted tests to verify that the program correctly requested re-entry if the user provided input other than 'y'. I repeated this test with 'n' using the logical operator '||.' As a result, the program now successfully re-prompts the user if any input does not correspond to 'y' or