Increasing sequence golf


Step Limit : 30
Statement
'1' ~ '5' のみからなる数字列 S が '[', ']' で括られて与えられます。
以下の条件を満たす要素と括弧を削除してください。
・自分より後ろに自分より小さい数字がある

制約
・ 1 ≦ |S| ≦ 15

サンプルの説明
[314152535]
xx_x_x_x__x
Sample Input
Sample Output
Contest ID
0009
Writer
admin
Publish date
2021/05/13 23:00:00
Solved
143
Best
10
Top player
mtsd