Anonymous interview question

Python coding for DSA problems