Queue All Method In Python Geeksforgeeks