Neota Logic interview question

How I would handle particular scenarios