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