Netradyne interview question

easy to medium dsa questions