smallest-inner-product practice solved