HC allows Vikas Barala to take exam under police custody