CIMON interview question

Asked me to solve a leetcode easy question