This is giving wrong ans?

anybody here ?? please check it :frowning:

@Muskan-Gupta-598128740703036
Line No.23
Compare mid with r instead of e.

Oh sorry! , mistaken …Thanks sir :slight_smile: