Face detection 2 golf


Statement
You are given S contains only 'i' and 'w'.
Find ALL substring "iwi" in S and surround all of them with '[' and ']'.

Constraint
* 1 ≤ |S| ≤ 20
* S does not contain "iwiwi" as a substring.
Sample Input
Sample Output
Contest ID
0009
Writer
admin
Publish date
2021/05/13 23:00:00
Solved
117
Best
4
Top player
Eki1009