A guide for generating a map of India with an encoded string in a pattern of the exclamation mark (!). What is a pattern? Usually, a pattern means a …