Mediaocean interview question

Basic Programming concepts DS