VRIZE interview question

How I have used code to automate the things