Three Tihar inmates appear in civil services exam