Find the percentage change in the area of a Rectangle

Given two integers P and Q which represents the percentage change in the length and breadth of the rectangle, the task is to print the percentage change in the area of the rectangle.

Examples:

Input: P = 10, Q = 20
Output: 32
Explanation:
Let the initial length of the rectangle be 100 and breadth be 80.
Initial area = 8000.
New length = 110 and new breadth = 96. Therefore, the new area = 10560.
The percentage change in the area = ((10560 – 8000) / 8000) * 100 = 32.

Input: P = 20, Q = -10
Output: 8
Let initial length of the rectangle be 100 and breadth be 80.
Initial area = 8000.
New length = 120 and new breadth = 72. Therefore, new area = 8640.
The percentage change in the area = ((8640 – 8000) / 8000) * 100 = 8.

Approach: