The Danish Queen visited a school with her Mary Foundation