Add solution to find the last N digits of number to Xth power.