log(n) solution for powering a number
finding pair of integers in an array which sum to K
remove duplicate characters from the string