added solution from first day of the weekly challenges