The problem statement asks to print the sub-array, which sums up to a given number called "sum."
Isitatimende senkinga sicela ukuphrinta uhlu olungaphansi, olufinyelela enombolweni enikeziwe ebizwa nge- "sum."