my leetcode excercise