New solution hitting time limit at test 9.