BNY interview question

Algorithms and data structures questions based on logical reasoning