Everpure Interview Question

Basic data structure and algorithm.