Pine Labs interview question

work done in previous project