D. E. Shaw India interview question

implement proirity que