Implement project Professional_L9.1(Garbage Collection)

@kostiantyn-kuzin please review