Jane Street Interview Question

coin tossing related math question