Algoscale interview question

some puzzles. dsa questions. coding round