Genius Plaza interview question

Coding Round and a round with VP