Whatnot interview question

Essentially justify text on leetcode