Root Inc. interview question

Interview 1: Live coding test with no prior warning