Bloomberg interview question

Mining Question (Algo)