Eternus Solutions interview question

Data Structures, Competitive programming