Epic interview question

They asked the isNumberAdditive question on leet code