Rupeek interview question

data structures and algorithms