Meta interview question

Medium leet-code difficulty questions were asked