Prob7B - multiplication checking