almost finish phase2, but how to debug?
pass all testcases of phase2