Your friend challenges you to play a game, in which you have to find the number to Power pairs in a series of numbers. A power pair is formed when a number-b is divisible by another number-a that occurs before the number-b in the given sequence. You can easily win the challenge by developing a program to find it.
Example:
Input:
3
1 3 2
Output:
2
Explanation:
For sequence = [1,3,2]
The sorted pair are: (1,3),(1,2)
So the output should be 2.
Solution:
Coming....