Calance Interview Question

DS and ALGO