Program to find out the exponent of given number(Level - Medium)