This is for leetcode solutions