Assignment

My attempt to solve assignment