AC

1. Comment
2. i -> cur_str & j -> cur_pat