Meta interview question

leetcode medium problems in hackerrank