srm_466_div2_250 use recursive solution