Pergunta de entrevista da empresa Snap

First 20-25 mins were behavioural questions and current role project discussions. Then the coding round started. It was a LC Hard question