Publishing.com Interview Question

Simple coding task "correct bracket sequence"