added new solution for 009 problem