TechHive interview question

the easiest question from the leetcode.