Block interview question

I was asked an easy LeetCode question.