The PDF version of this problem can be downloaded here.
5 1 BBABB 1 2 3 4 5
5 1
Migrated from old NTUJ.