Solutions of leetcode coding problems