Company: Fast retailing_20july
Difficulty: medium
Simple Symbols Problem Description You are given a single sequence str built from the symbols + and = with other characters placed between them, for example ++d+===+c++==a . The sequence is acceptable when every letter in it is surrounded by + symbols - that is, the character immediately before the letter is a + and the character immediately after the letter is also a + . Characters that are not letters, such as digits, carry no such requirement. Implement SimpleSymbols(str) so that it returns the string true when the sequence is acceptable and the string false otherwise. Input Format A single line containing the sequence str . (inferred - the source presents this as a function that receives str directly; here the sequence is read from standard input as one whitespace-free line.) Output Format Print exactly one line: true if every letter in str is surrounded by + symbols, otherwise false . The words are lowercase. Constraints 1 <= |str| <= 100000 (inferred - the source gives no m