Minimum number operations required to convert n to m | Set-2
Given two integers n and m and a and b, in a single operation n can be multiplied by either a or b. The task is to convert n to m with a minimum number of given operations. If it is impossible to convert n to m with the given operation then print -1. Examples: Input: n = 120, m = 51840, a = 2, b = 3