Question: how to get the power of monomials

how to get the power of monomials

 

if input x, return 1

if input x*y^2, return [1,2]

Please Wait...