G-Research interview question

My interview round was based on coding puzzles. The exact question content is under NDA.