Teradata interview question

candy problem leetcode, candy problem leetcode