Agoda Interview Question

Structure thinking questions, and math