Cisco interview question

Why VLANs used? Sorting of array in Python, Virtualization basics