Baazi Games interview question

Nothing too crazy, basic stuff