TodayTix Interview Question

Asked to explain two-pointers solution for a problem