Python Tkinter Geeksforgeeks Interview Question