a bit of fun with leetcode problems