I'm attempting to achieve a simple sort of hangman situation in Java, where an array of characters is initialized, takes a user input, and returns all indexes where the letters in the string input occurs. So far, I have a very strange output and I think it's due to my beginner's faux pas in terms of my loops and certain placements. Do let me know if you have insight to this issue:I'm attempting to achieve a simple sort of hang