Computing Data Structures In Python Interview Question