Cummins interview question

Technical