I have an input string "abcdefgh", it could be any string of length N, but it follows certain criteria
"abcdefgh"
Criteria:
1.N is