DeCurtis Interview Question

Data structure and programming logics based