Grainger interview question

LeetCode easy problem, some very generic behavioral questions