e checks with matches and getting index (2 >0) true and we have given feedback false then for OR Gate (T/F)=T for AND gate T/F =F till here it completes 1st iteration and its is indexed 0
similarly e matches again at index 4 for or gate now it is (T/T()Feedback)-T for and gate (T/T(Feedback))- T and it met stop condition ,it completes 2nd iteration i=1 and it is indexed so we get output as 0 and 1
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
We are looking for the second occurrence of a string in the input array that contains at least one character e. The first time we find a string (that contains at least one e) the upper feedback node and OR gate combination latches to TRUE. Then if we find a second string (that contains at least one e) we satisfy the While Loop STOP Condition (lower feedback node and AND gate combination).