Madras High Court to the rescue of girl who wrote exam in parts