EXL Service Interview Question

Ant in triangular box puzzle