Publicis Sapient Interview Question

What was your thought process during the coding test