Want to solve this problem? Login now to get access to solve the problems

Problem

Submissions

Solution

Leaderboard

Coming soon

20

Difficulty: EASY

Avg. time to solve

10 min

Success Rate

85%

Problem Statement

Suggest Edit

```
Line 1: String S
```

```
YES or NO
```

```
1 <= n (Length of String s) <= 10^5
```

```
ABA
```

```
NO
```

```
BACFAB
```

```
YES
```

```
AXBYBXA
```

```
NO
```

Want to solve this problem? Login now to get access to solve the problems