Attentive interview question

standard leetcode and system design