Complexity of wines Problem

What is the the complexity of Wines Problem?

The time complexity of Wine Problem is O(n^2)