EXL Service interview question

13 ball problem