Deloitte interview question

Mainly regarding Data Structure and Algorithm