Leet code first two problems