Publicis Sapient interview question

What was your thought process during the coding test