Endava interview question

Basic programming concepts