Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use dynamic programming to get the power of each integer of the intervals.
Sort all the integers of the interval by the power value and return the k-th in the sorted list.