D. E. Shaw India Interview Question

implement proirity que