qualifying round solutions and code