Jane Street Interview Question

expected value to get THH