Nagarro Interview Question

dry run and optimize the code of the subjective test