Queen Mary of Denmark stepped out for her final day in Brazil looking as chic as ever in a sophisticated ensemble with seemingly a nod to her native Australia