DotPe Interview Question

basic Data structure and algo