Altoids' Leetcode solutions