started on recursive solution for 24