Brillio interview question

Data Structures and Algorithms deeply