updated problem 9

Program works but need to order asq, bsq, csq correctly