class Solution(object):
    def constructRectangle(self, area):
        """
        :type area: int
        :rtype: List[int]
        """
        ans = None
        W = 1
        while W * W <= area:
            if area % W == 0:
                ans = [area / W, W]
            W += 1
        return ans

Add py solution for 492. Construct the Rectangle
Add py solution for 492. Construct the Rectangle

492. Construct the Rectangle: https://leetcode.com/problems/construct-the-rectangle/
