start of solution for ordering tasks

got runtime error on submission