Appier interview question

It was a leet-code-like question.

Interview Answer

Anonymous

20 Feb 2024

I answered it quickly using a brute-force method but they wanted to chat on how to improve efficiency. I also answered this while taking hints from them.