GCPL Technologies interview question

regarding programming