I have been trying to solve my assignment for so long and could not figure this one out, due to lack of exercises and not finding similar questions on the internet I have given