EXL Service Interview Question

13 ball problem