Agoda Interview Question

typical problems from a leetcode (not data science)