my leetCode answer