Problem statement
You are given two positive integers 'n' and 'm'. You have to return the 'nth' root of 'm', i.e. 'm(1/n)'. If the 'nth root is not an integer, return -1. (link)
Note:
'nth' root of an integer 'm' is a number, which, when raised to th...