StackAdapt Interview Question

One math question!