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
Deeeply e
1
Deeeppply p
4