JPMorganChase Interview Question

Probability and Sorting algorithms, Puzzles