Write a program that reads a string of up to 100 characters, and if its length is less than three characters, it should force the user to enter a new one. Next, the program should read a character and check if the string contains the input character three times in a row. The program should display the position of the first triad found.
Sample input:
fg
DuplicateThis
D
Sample output: 
Not found
 
Sample input: 
Deeeply
e
Sample output:
1
Sample input: 
Deeeppply
p
Sample output:
4