The apex court was hearing a challenge to demolition notices served in Uttar Pradesh's Bahraich following a communal clash