Shortest Distance Between Strings
Problem Given a string s and a letter t, write a program that prints the minimum distance each letter of string is from the letter . input The first line is given the string and the letter . Strings and characters are given only in lower case. The length of the string does not exceed 100. output…