Cummins interview question

basic