1st leetcode problem and incorrect :(