Xpanxion Interview Question

Question on previous work and based on that technical round