HCLTech interview question

Python, Data Structures, coding, general concepts