FastPrepCount Powers of K (MLE)
public int countPowersOfK(int[] arr, int k) {
  // write your code here
}
arr[11, 121, 10]
k11
expected2
Checking account…