DIY: Random Pick Index

Solve the interview question "Random Pick Index" in this lesson.

Problem statement

In this challenge, you are given an array of integers with possible duplicate values. Your task is to output a ...