Brillio Interview Question

Basic algorithm and data structures.