Increment in ruby [solved]
The attached code is my attempt at secret message code coach problem. The program is supposed to take a string input in a. It then iterates for each character of a and checks if its a space, present in b or present in c. If its present in b or c, it is supposed to print the equivalent character of that position in d. d is the reverse of b and c in small letters. The problem here is that when it is iterating through b and c, it doesn't increase the value of count. So the answer is always a string of z's. The letter z is at index 0 in d, and the initial value of count is 0. That means that count is not incremented at all during the iteration. What is my error? Did I put the incrementation of count in the wrong place or what? I'm really confused as to why count's value isn't increasing https://code.sololearn.com/c3PZ84WqckTt/?ref=app