Accordion interview question

some what dsa and some core tech knowledge