Epic interview question

Online test. Math logical and programming