8 Blocks Capital interview question

basic mental math and some probability